package chapter9.section9;

//程序9-12b  一个生成Student的工厂类
public class StudentFactory {
	private StudentFactory() {
	}

	public static Student createStudent(String name, int age) {
		Student stu = new Student(name, age);
		return stu;
	}
}
